Esquaret = 1.2e12*1.2e12;
Esquare=8.62e23;
speedOfLight = 2.99792458e8; 
magneticPermeability0 = 4.0 * pi * 1.0e-7;
electricalPermittivity0 = 1.0 / (speedOfLight * speedOfLight * magneticPermeability0);       
w0 = 10e-6;

ddx = 40e-9;
dt = ddx/(2*speedOfLight);
pulseWidth=  5e-15; %500*dt;
measureTime = 500*dt;
Energy = Esquaret*pulseWidth*pi*electricalPermittivity0*w0*w0*speedOfLight/(2*0.94);
Energy2 = speedOfLight*electricalPermittivity0 *Esquare*2*pi*w0*w0*measureTime*2
